package com.chenxi.controller;

import com.chenxi.model.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/userApi")
public class UserController {

    @RequestMapping(value = "/getUser")
    public User getUser(){
        User u = new User();
        u.setUsername("testUser");
        u.setPassword("testPwd");
        return u;
    }
}
